package com.alex.core.exception;


import com.ddcx.contants.enums.ApiResponseEnum;

/**
 * @author: xc
 * @ClassName: CustomException
 * @Date: 2019/6/4 18:11
 * @Description:
 */
public class CustomException extends   AbstractException {

    public CustomException(int code, String msg, String errorMsg) {
        super( code, msg,errorMsg);
    }

    public CustomException(ApiResponseEnum apiResponseEnum) {
        super(apiResponseEnum.getCode(), apiResponseEnum.getErrorMsg(), apiResponseEnum.getErrorMsg());
    }
}
